package cn.prophet.bean;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class GameOrderExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public GameOrderExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andGameCategoryIsNull() {
            addCriterion("game_category is null");
            return (Criteria) this;
        }

        public Criteria andGameCategoryIsNotNull() {
            addCriterion("game_category is not null");
            return (Criteria) this;
        }

        public Criteria andGameCategoryEqualTo(Byte value) {
            addCriterion("game_category =", value, "gameCategory");
            return (Criteria) this;
        }

        public Criteria andGameCategoryNotEqualTo(Byte value) {
            addCriterion("game_category <>", value, "gameCategory");
            return (Criteria) this;
        }

        public Criteria andGameCategoryGreaterThan(Byte value) {
            addCriterion("game_category >", value, "gameCategory");
            return (Criteria) this;
        }

        public Criteria andGameCategoryGreaterThanOrEqualTo(Byte value) {
            addCriterion("game_category >=", value, "gameCategory");
            return (Criteria) this;
        }

        public Criteria andGameCategoryLessThan(Byte value) {
            addCriterion("game_category <", value, "gameCategory");
            return (Criteria) this;
        }

        public Criteria andGameCategoryLessThanOrEqualTo(Byte value) {
            addCriterion("game_category <=", value, "gameCategory");
            return (Criteria) this;
        }

        public Criteria andGameCategoryIn(List<Byte> values) {
            addCriterion("game_category in", values, "gameCategory");
            return (Criteria) this;
        }

        public Criteria andGameCategoryNotIn(List<Byte> values) {
            addCriterion("game_category not in", values, "gameCategory");
            return (Criteria) this;
        }

        public Criteria andGameCategoryBetween(Byte value1, Byte value2) {
            addCriterion("game_category between", value1, value2, "gameCategory");
            return (Criteria) this;
        }

        public Criteria andGameCategoryNotBetween(Byte value1, Byte value2) {
            addCriterion("game_category not between", value1, value2, "gameCategory");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNull() {
            addCriterion("user_id is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("user_id is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(Long value) {
            addCriterion("user_id =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(Long value) {
            addCriterion("user_id <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(Long value) {
            addCriterion("user_id >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(Long value) {
            addCriterion("user_id >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(Long value) {
            addCriterion("user_id <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(Long value) {
            addCriterion("user_id <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<Long> values) {
            addCriterion("user_id in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<Long> values) {
            addCriterion("user_id not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(Long value1, Long value2) {
            addCriterion("user_id between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(Long value1, Long value2) {
            addCriterion("user_id not between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andGameTypeIsNull() {
            addCriterion("game_type is null");
            return (Criteria) this;
        }

        public Criteria andGameTypeIsNotNull() {
            addCriterion("game_type is not null");
            return (Criteria) this;
        }

        public Criteria andGameTypeEqualTo(Byte value) {
            addCriterion("game_type =", value, "gameType");
            return (Criteria) this;
        }

        public Criteria andGameTypeNotEqualTo(Byte value) {
            addCriterion("game_type <>", value, "gameType");
            return (Criteria) this;
        }

        public Criteria andGameTypeGreaterThan(Byte value) {
            addCriterion("game_type >", value, "gameType");
            return (Criteria) this;
        }

        public Criteria andGameTypeGreaterThanOrEqualTo(Byte value) {
            addCriterion("game_type >=", value, "gameType");
            return (Criteria) this;
        }

        public Criteria andGameTypeLessThan(Byte value) {
            addCriterion("game_type <", value, "gameType");
            return (Criteria) this;
        }

        public Criteria andGameTypeLessThanOrEqualTo(Byte value) {
            addCriterion("game_type <=", value, "gameType");
            return (Criteria) this;
        }

        public Criteria andGameTypeIn(List<Byte> values) {
            addCriterion("game_type in", values, "gameType");
            return (Criteria) this;
        }

        public Criteria andGameTypeNotIn(List<Byte> values) {
            addCriterion("game_type not in", values, "gameType");
            return (Criteria) this;
        }

        public Criteria andGameTypeBetween(Byte value1, Byte value2) {
            addCriterion("game_type between", value1, value2, "gameType");
            return (Criteria) this;
        }

        public Criteria andGameTypeNotBetween(Byte value1, Byte value2) {
            addCriterion("game_type not between", value1, value2, "gameType");
            return (Criteria) this;
        }

        public Criteria andGameResultIsNull() {
            addCriterion("game_result is null");
            return (Criteria) this;
        }

        public Criteria andGameResultIsNotNull() {
            addCriterion("game_result is not null");
            return (Criteria) this;
        }

        public Criteria andGameResultEqualTo(String value) {
            addCriterion("game_result =", value, "gameResult");
            return (Criteria) this;
        }

        public Criteria andGameResultNotEqualTo(String value) {
            addCriterion("game_result <>", value, "gameResult");
            return (Criteria) this;
        }

        public Criteria andGameResultGreaterThan(String value) {
            addCriterion("game_result >", value, "gameResult");
            return (Criteria) this;
        }

        public Criteria andGameResultGreaterThanOrEqualTo(String value) {
            addCriterion("game_result >=", value, "gameResult");
            return (Criteria) this;
        }

        public Criteria andGameResultLessThan(String value) {
            addCriterion("game_result <", value, "gameResult");
            return (Criteria) this;
        }

        public Criteria andGameResultLessThanOrEqualTo(String value) {
            addCriterion("game_result <=", value, "gameResult");
            return (Criteria) this;
        }

        public Criteria andGameResultLike(String value) {
            addCriterion("game_result like", value, "gameResult");
            return (Criteria) this;
        }

        public Criteria andGameResultNotLike(String value) {
            addCriterion("game_result not like", value, "gameResult");
            return (Criteria) this;
        }

        public Criteria andGameResultIn(List<String> values) {
            addCriterion("game_result in", values, "gameResult");
            return (Criteria) this;
        }

        public Criteria andGameResultNotIn(List<String> values) {
            addCriterion("game_result not in", values, "gameResult");
            return (Criteria) this;
        }

        public Criteria andGameResultBetween(String value1, String value2) {
            addCriterion("game_result between", value1, value2, "gameResult");
            return (Criteria) this;
        }

        public Criteria andGameResultNotBetween(String value1, String value2) {
            addCriterion("game_result not between", value1, value2, "gameResult");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andRecordIdIsNull() {
            addCriterion("record_id is null");
            return (Criteria) this;
        }

        public Criteria andRecordIdIsNotNull() {
            addCriterion("record_id is not null");
            return (Criteria) this;
        }

        public Criteria andRecordIdEqualTo(String value) {
            addCriterion("record_id =", value, "recordId");
            return (Criteria) this;
        }

        public Criteria andRecordIdNotEqualTo(String value) {
            addCriterion("record_id <>", value, "recordId");
            return (Criteria) this;
        }

        public Criteria andRecordIdGreaterThan(String value) {
            addCriterion("record_id >", value, "recordId");
            return (Criteria) this;
        }

        public Criteria andRecordIdGreaterThanOrEqualTo(String value) {
            addCriterion("record_id >=", value, "recordId");
            return (Criteria) this;
        }

        public Criteria andRecordIdLessThan(String value) {
            addCriterion("record_id <", value, "recordId");
            return (Criteria) this;
        }

        public Criteria andRecordIdLessThanOrEqualTo(String value) {
            addCriterion("record_id <=", value, "recordId");
            return (Criteria) this;
        }

        public Criteria andRecordIdLike(String value) {
            addCriterion("record_id like", value, "recordId");
            return (Criteria) this;
        }

        public Criteria andRecordIdNotLike(String value) {
            addCriterion("record_id not like", value, "recordId");
            return (Criteria) this;
        }

        public Criteria andRecordIdIn(List<String> values) {
            addCriterion("record_id in", values, "recordId");
            return (Criteria) this;
        }

        public Criteria andRecordIdNotIn(List<String> values) {
            addCriterion("record_id not in", values, "recordId");
            return (Criteria) this;
        }

        public Criteria andRecordIdBetween(String value1, String value2) {
            addCriterion("record_id between", value1, value2, "recordId");
            return (Criteria) this;
        }

        public Criteria andRecordIdNotBetween(String value1, String value2) {
            addCriterion("record_id not between", value1, value2, "recordId");
            return (Criteria) this;
        }

        public Criteria andBuyNumIsNull() {
            addCriterion("buy_num is null");
            return (Criteria) this;
        }

        public Criteria andBuyNumIsNotNull() {
            addCriterion("buy_num is not null");
            return (Criteria) this;
        }

        public Criteria andBuyNumEqualTo(Byte value) {
            addCriterion("buy_num =", value, "buyNum");
            return (Criteria) this;
        }

        public Criteria andBuyNumNotEqualTo(Byte value) {
            addCriterion("buy_num <>", value, "buyNum");
            return (Criteria) this;
        }

        public Criteria andBuyNumGreaterThan(Byte value) {
            addCriterion("buy_num >", value, "buyNum");
            return (Criteria) this;
        }

        public Criteria andBuyNumGreaterThanOrEqualTo(Byte value) {
            addCriterion("buy_num >=", value, "buyNum");
            return (Criteria) this;
        }

        public Criteria andBuyNumLessThan(Byte value) {
            addCriterion("buy_num <", value, "buyNum");
            return (Criteria) this;
        }

        public Criteria andBuyNumLessThanOrEqualTo(Byte value) {
            addCriterion("buy_num <=", value, "buyNum");
            return (Criteria) this;
        }

        public Criteria andBuyNumIn(List<Byte> values) {
            addCriterion("buy_num in", values, "buyNum");
            return (Criteria) this;
        }

        public Criteria andBuyNumNotIn(List<Byte> values) {
            addCriterion("buy_num not in", values, "buyNum");
            return (Criteria) this;
        }

        public Criteria andBuyNumBetween(Byte value1, Byte value2) {
            addCriterion("buy_num between", value1, value2, "buyNum");
            return (Criteria) this;
        }

        public Criteria andBuyNumNotBetween(Byte value1, Byte value2) {
            addCriterion("buy_num not between", value1, value2, "buyNum");
            return (Criteria) this;
        }

        public Criteria andMultipleIsNull() {
            addCriterion("multiple is null");
            return (Criteria) this;
        }

        public Criteria andMultipleIsNotNull() {
            addCriterion("multiple is not null");
            return (Criteria) this;
        }

        public Criteria andMultipleEqualTo(Short value) {
            addCriterion("multiple =", value, "multiple");
            return (Criteria) this;
        }

        public Criteria andMultipleNotEqualTo(Short value) {
            addCriterion("multiple <>", value, "multiple");
            return (Criteria) this;
        }

        public Criteria andMultipleGreaterThan(Short value) {
            addCriterion("multiple >", value, "multiple");
            return (Criteria) this;
        }

        public Criteria andMultipleGreaterThanOrEqualTo(Short value) {
            addCriterion("multiple >=", value, "multiple");
            return (Criteria) this;
        }

        public Criteria andMultipleLessThan(Short value) {
            addCriterion("multiple <", value, "multiple");
            return (Criteria) this;
        }

        public Criteria andMultipleLessThanOrEqualTo(Short value) {
            addCriterion("multiple <=", value, "multiple");
            return (Criteria) this;
        }

        public Criteria andMultipleIn(List<Short> values) {
            addCriterion("multiple in", values, "multiple");
            return (Criteria) this;
        }

        public Criteria andMultipleNotIn(List<Short> values) {
            addCriterion("multiple not in", values, "multiple");
            return (Criteria) this;
        }

        public Criteria andMultipleBetween(Short value1, Short value2) {
            addCriterion("multiple between", value1, value2, "multiple");
            return (Criteria) this;
        }

        public Criteria andMultipleNotBetween(Short value1, Short value2) {
            addCriterion("multiple not between", value1, value2, "multiple");
            return (Criteria) this;
        }

        public Criteria andSingleAmountIsNull() {
            addCriterion("single_amount is null");
            return (Criteria) this;
        }

        public Criteria andSingleAmountIsNotNull() {
            addCriterion("single_amount is not null");
            return (Criteria) this;
        }

        public Criteria andSingleAmountEqualTo(BigDecimal value) {
            addCriterion("single_amount =", value, "singleAmount");
            return (Criteria) this;
        }

        public Criteria andSingleAmountNotEqualTo(BigDecimal value) {
            addCriterion("single_amount <>", value, "singleAmount");
            return (Criteria) this;
        }

        public Criteria andSingleAmountGreaterThan(BigDecimal value) {
            addCriterion("single_amount >", value, "singleAmount");
            return (Criteria) this;
        }

        public Criteria andSingleAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("single_amount >=", value, "singleAmount");
            return (Criteria) this;
        }

        public Criteria andSingleAmountLessThan(BigDecimal value) {
            addCriterion("single_amount <", value, "singleAmount");
            return (Criteria) this;
        }

        public Criteria andSingleAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("single_amount <=", value, "singleAmount");
            return (Criteria) this;
        }

        public Criteria andSingleAmountIn(List<BigDecimal> values) {
            addCriterion("single_amount in", values, "singleAmount");
            return (Criteria) this;
        }

        public Criteria andSingleAmountNotIn(List<BigDecimal> values) {
            addCriterion("single_amount not in", values, "singleAmount");
            return (Criteria) this;
        }

        public Criteria andSingleAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("single_amount between", value1, value2, "singleAmount");
            return (Criteria) this;
        }

        public Criteria andSingleAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("single_amount not between", value1, value2, "singleAmount");
            return (Criteria) this;
        }

        public Criteria andBettingAmountIsNull() {
            addCriterion("betting_amount is null");
            return (Criteria) this;
        }

        public Criteria andBettingAmountIsNotNull() {
            addCriterion("betting_amount is not null");
            return (Criteria) this;
        }

        public Criteria andBettingAmountEqualTo(BigDecimal value) {
            addCriterion("betting_amount =", value, "bettingAmount");
            return (Criteria) this;
        }

        public Criteria andBettingAmountNotEqualTo(BigDecimal value) {
            addCriterion("betting_amount <>", value, "bettingAmount");
            return (Criteria) this;
        }

        public Criteria andBettingAmountGreaterThan(BigDecimal value) {
            addCriterion("betting_amount >", value, "bettingAmount");
            return (Criteria) this;
        }

        public Criteria andBettingAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("betting_amount >=", value, "bettingAmount");
            return (Criteria) this;
        }

        public Criteria andBettingAmountLessThan(BigDecimal value) {
            addCriterion("betting_amount <", value, "bettingAmount");
            return (Criteria) this;
        }

        public Criteria andBettingAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("betting_amount <=", value, "bettingAmount");
            return (Criteria) this;
        }

        public Criteria andBettingAmountIn(List<BigDecimal> values) {
            addCriterion("betting_amount in", values, "bettingAmount");
            return (Criteria) this;
        }

        public Criteria andBettingAmountNotIn(List<BigDecimal> values) {
            addCriterion("betting_amount not in", values, "bettingAmount");
            return (Criteria) this;
        }

        public Criteria andBettingAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("betting_amount between", value1, value2, "bettingAmount");
            return (Criteria) this;
        }

        public Criteria andBettingAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("betting_amount not between", value1, value2, "bettingAmount");
            return (Criteria) this;
        }

        public Criteria andWinningAmountIsNull() {
            addCriterion("winning_amount is null");
            return (Criteria) this;
        }

        public Criteria andWinningAmountIsNotNull() {
            addCriterion("winning_amount is not null");
            return (Criteria) this;
        }

        public Criteria andWinningAmountEqualTo(BigDecimal value) {
            addCriterion("winning_amount =", value, "winningAmount");
            return (Criteria) this;
        }

        public Criteria andWinningAmountNotEqualTo(BigDecimal value) {
            addCriterion("winning_amount <>", value, "winningAmount");
            return (Criteria) this;
        }

        public Criteria andWinningAmountGreaterThan(BigDecimal value) {
            addCriterion("winning_amount >", value, "winningAmount");
            return (Criteria) this;
        }

        public Criteria andWinningAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("winning_amount >=", value, "winningAmount");
            return (Criteria) this;
        }

        public Criteria andWinningAmountLessThan(BigDecimal value) {
            addCriterion("winning_amount <", value, "winningAmount");
            return (Criteria) this;
        }

        public Criteria andWinningAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("winning_amount <=", value, "winningAmount");
            return (Criteria) this;
        }

        public Criteria andWinningAmountIn(List<BigDecimal> values) {
            addCriterion("winning_amount in", values, "winningAmount");
            return (Criteria) this;
        }

        public Criteria andWinningAmountNotIn(List<BigDecimal> values) {
            addCriterion("winning_amount not in", values, "winningAmount");
            return (Criteria) this;
        }

        public Criteria andWinningAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("winning_amount between", value1, value2, "winningAmount");
            return (Criteria) this;
        }

        public Criteria andWinningAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("winning_amount not between", value1, value2, "winningAmount");
            return (Criteria) this;
        }

        public Criteria andDealStatusIsNull() {
            addCriterion("deal_status is null");
            return (Criteria) this;
        }

        public Criteria andDealStatusIsNotNull() {
            addCriterion("deal_status is not null");
            return (Criteria) this;
        }

        public Criteria andDealStatusEqualTo(Byte value) {
            addCriterion("deal_status =", value, "dealStatus");
            return (Criteria) this;
        }

        public Criteria andDealStatusNotEqualTo(Byte value) {
            addCriterion("deal_status <>", value, "dealStatus");
            return (Criteria) this;
        }

        public Criteria andDealStatusGreaterThan(Byte value) {
            addCriterion("deal_status >", value, "dealStatus");
            return (Criteria) this;
        }

        public Criteria andDealStatusGreaterThanOrEqualTo(Byte value) {
            addCriterion("deal_status >=", value, "dealStatus");
            return (Criteria) this;
        }

        public Criteria andDealStatusLessThan(Byte value) {
            addCriterion("deal_status <", value, "dealStatus");
            return (Criteria) this;
        }

        public Criteria andDealStatusLessThanOrEqualTo(Byte value) {
            addCriterion("deal_status <=", value, "dealStatus");
            return (Criteria) this;
        }

        public Criteria andDealStatusIn(List<Byte> values) {
            addCriterion("deal_status in", values, "dealStatus");
            return (Criteria) this;
        }

        public Criteria andDealStatusNotIn(List<Byte> values) {
            addCriterion("deal_status not in", values, "dealStatus");
            return (Criteria) this;
        }

        public Criteria andDealStatusBetween(Byte value1, Byte value2) {
            addCriterion("deal_status between", value1, value2, "dealStatus");
            return (Criteria) this;
        }

        public Criteria andDealStatusNotBetween(Byte value1, Byte value2) {
            addCriterion("deal_status not between", value1, value2, "dealStatus");
            return (Criteria) this;
        }

        public Criteria andReadStatusIsNull() {
            addCriterion("read_status is null");
            return (Criteria) this;
        }

        public Criteria andReadStatusIsNotNull() {
            addCriterion("read_status is not null");
            return (Criteria) this;
        }

        public Criteria andReadStatusEqualTo(Byte value) {
            addCriterion("read_status =", value, "readStatus");
            return (Criteria) this;
        }

        public Criteria andReadStatusNotEqualTo(Byte value) {
            addCriterion("read_status <>", value, "readStatus");
            return (Criteria) this;
        }

        public Criteria andReadStatusGreaterThan(Byte value) {
            addCriterion("read_status >", value, "readStatus");
            return (Criteria) this;
        }

        public Criteria andReadStatusGreaterThanOrEqualTo(Byte value) {
            addCriterion("read_status >=", value, "readStatus");
            return (Criteria) this;
        }

        public Criteria andReadStatusLessThan(Byte value) {
            addCriterion("read_status <", value, "readStatus");
            return (Criteria) this;
        }

        public Criteria andReadStatusLessThanOrEqualTo(Byte value) {
            addCriterion("read_status <=", value, "readStatus");
            return (Criteria) this;
        }

        public Criteria andReadStatusIn(List<Byte> values) {
            addCriterion("read_status in", values, "readStatus");
            return (Criteria) this;
        }

        public Criteria andReadStatusNotIn(List<Byte> values) {
            addCriterion("read_status not in", values, "readStatus");
            return (Criteria) this;
        }

        public Criteria andReadStatusBetween(Byte value1, Byte value2) {
            addCriterion("read_status between", value1, value2, "readStatus");
            return (Criteria) this;
        }

        public Criteria andReadStatusNotBetween(Byte value1, Byte value2) {
            addCriterion("read_status not between", value1, value2, "readStatus");
            return (Criteria) this;
        }

        public Criteria andWinRecordIsNull() {
            addCriterion("win_record is null");
            return (Criteria) this;
        }

        public Criteria andWinRecordIsNotNull() {
            addCriterion("win_record is not null");
            return (Criteria) this;
        }

        public Criteria andWinRecordEqualTo(String value) {
            addCriterion("win_record =", value, "winRecord");
            return (Criteria) this;
        }

        public Criteria andWinRecordNotEqualTo(String value) {
            addCriterion("win_record <>", value, "winRecord");
            return (Criteria) this;
        }

        public Criteria andWinRecordGreaterThan(String value) {
            addCriterion("win_record >", value, "winRecord");
            return (Criteria) this;
        }

        public Criteria andWinRecordGreaterThanOrEqualTo(String value) {
            addCriterion("win_record >=", value, "winRecord");
            return (Criteria) this;
        }

        public Criteria andWinRecordLessThan(String value) {
            addCriterion("win_record <", value, "winRecord");
            return (Criteria) this;
        }

        public Criteria andWinRecordLessThanOrEqualTo(String value) {
            addCriterion("win_record <=", value, "winRecord");
            return (Criteria) this;
        }

        public Criteria andWinRecordLike(String value) {
            addCriterion("win_record like", value, "winRecord");
            return (Criteria) this;
        }

        public Criteria andWinRecordNotLike(String value) {
            addCriterion("win_record not like", value, "winRecord");
            return (Criteria) this;
        }

        public Criteria andWinRecordIn(List<String> values) {
            addCriterion("win_record in", values, "winRecord");
            return (Criteria) this;
        }

        public Criteria andWinRecordNotIn(List<String> values) {
            addCriterion("win_record not in", values, "winRecord");
            return (Criteria) this;
        }

        public Criteria andWinRecordBetween(String value1, String value2) {
            addCriterion("win_record between", value1, value2, "winRecord");
            return (Criteria) this;
        }

        public Criteria andWinRecordNotBetween(String value1, String value2) {
            addCriterion("win_record not between", value1, value2, "winRecord");
            return (Criteria) this;
        }

        public Criteria andIsstopIsNull() {
            addCriterion("isStop is null");
            return (Criteria) this;
        }

        public Criteria andIsstopIsNotNull() {
            addCriterion("isStop is not null");
            return (Criteria) this;
        }

        public Criteria andIsstopEqualTo(Byte value) {
            addCriterion("isStop =", value, "isstop");
            return (Criteria) this;
        }

        public Criteria andIsstopNotEqualTo(Byte value) {
            addCriterion("isStop <>", value, "isstop");
            return (Criteria) this;
        }

        public Criteria andIsstopGreaterThan(Byte value) {
            addCriterion("isStop >", value, "isstop");
            return (Criteria) this;
        }

        public Criteria andIsstopGreaterThanOrEqualTo(Byte value) {
            addCriterion("isStop >=", value, "isstop");
            return (Criteria) this;
        }

        public Criteria andIsstopLessThan(Byte value) {
            addCriterion("isStop <", value, "isstop");
            return (Criteria) this;
        }

        public Criteria andIsstopLessThanOrEqualTo(Byte value) {
            addCriterion("isStop <=", value, "isstop");
            return (Criteria) this;
        }

        public Criteria andIsstopIn(List<Byte> values) {
            addCriterion("isStop in", values, "isstop");
            return (Criteria) this;
        }

        public Criteria andIsstopNotIn(List<Byte> values) {
            addCriterion("isStop not in", values, "isstop");
            return (Criteria) this;
        }

        public Criteria andIsstopBetween(Byte value1, Byte value2) {
            addCriterion("isStop between", value1, value2, "isstop");
            return (Criteria) this;
        }

        public Criteria andIsstopNotBetween(Byte value1, Byte value2) {
            addCriterion("isStop not between", value1, value2, "isstop");
            return (Criteria) this;
        }

        public Criteria andIsChaseIsNull() {
            addCriterion("is_chase is null");
            return (Criteria) this;
        }

        public Criteria andIsChaseIsNotNull() {
            addCriterion("is_chase is not null");
            return (Criteria) this;
        }

        public Criteria andIsChaseEqualTo(Byte value) {
            addCriterion("is_chase =", value, "isChase");
            return (Criteria) this;
        }

        public Criteria andIsChaseNotEqualTo(Byte value) {
            addCriterion("is_chase <>", value, "isChase");
            return (Criteria) this;
        }

        public Criteria andIsChaseGreaterThan(Byte value) {
            addCriterion("is_chase >", value, "isChase");
            return (Criteria) this;
        }

        public Criteria andIsChaseGreaterThanOrEqualTo(Byte value) {
            addCriterion("is_chase >=", value, "isChase");
            return (Criteria) this;
        }

        public Criteria andIsChaseLessThan(Byte value) {
            addCriterion("is_chase <", value, "isChase");
            return (Criteria) this;
        }

        public Criteria andIsChaseLessThanOrEqualTo(Byte value) {
            addCriterion("is_chase <=", value, "isChase");
            return (Criteria) this;
        }

        public Criteria andIsChaseIn(List<Byte> values) {
            addCriterion("is_chase in", values, "isChase");
            return (Criteria) this;
        }

        public Criteria andIsChaseNotIn(List<Byte> values) {
            addCriterion("is_chase not in", values, "isChase");
            return (Criteria) this;
        }

        public Criteria andIsChaseBetween(Byte value1, Byte value2) {
            addCriterion("is_chase between", value1, value2, "isChase");
            return (Criteria) this;
        }

        public Criteria andIsChaseNotBetween(Byte value1, Byte value2) {
            addCriterion("is_chase not between", value1, value2, "isChase");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}